﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Demo_控件样式.View.Tool
{
    /// <summary>
    /// Label.xaml 的交互逻辑
    /// </summary>
    public partial class Label : Canvas
    {
        public Label()
        {
            InitializeComponent();
        }

        public string LBText
        {
            get { return (string)GetValue(LBTextProperty); }
            set { SetValue(LBTextProperty, value); }
        }
        public static readonly DependencyProperty LBTextProperty =
            DependencyProperty.Register("LBText", typeof(string), typeof(Label), new PropertyMetadata(""));

        public double LBSize
        {
            get { return (double)GetValue(LBSizeProperty); }
            set { SetValue(LBSizeProperty, value); }
        }
        public static readonly DependencyProperty LBSizeProperty =
            DependencyProperty.Register("LBSize", typeof(double), typeof(Label), new PropertyMetadata(double.NaN));

    }
}
